﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

// Class representing 1 row of the Equipment table (DB_version 3) 

namespace StoveTop.Models
{
	class Equipment
	{
		private int _id;
		private string _name;
		private bool _is_owned;

		// Constructors
		public Equipment() {
		}
		public Equipment(int id, string name, bool is_owned){
			_id = id;
			_name = name;
			_is_owned = is_owned;
		}

		// Setters
		public void SetId(int id) {
			_id = id;
		}
		public void SetName(string name) {
			_name = name;
		}
		public void SetOwned(bool is_owned) {
			_is_owned = is_owned;
		}
		// Getters
		public int GetId() {
			return _id;
		}
		public string GetName() {
			return _name;
		}
		public bool IsOwned() {
			return _is_owned;
		}

		// Other Useful Methods
		public override string ToString() {
			return "Equipment [id=" + _id + " name=" + _name + "]";
		}
	}
}




